import { http } from "@/utils/http";

// 定义接收到的数据类型
export type TestResult = {
  code: number;
  data: {
    name: string;
  };
  message: string;
};

export const getTest = (data?: object) => {
  return http.request<TestResult>("post", "/test", { data });
};
